package com.zdb.service;

import com.zdb.mapper.TagMapper;
import com.zdb.pojo.Tags;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

@Service
public class TagServiceImpl implements TagService{


    @Autowired
    private TagMapper tagsMapper;
    @Override
    public List<Tags> getTags() {
        return tagsMapper.selectList(null);
    }

    @Override
    public List<Tags> getTagsByCId(int id) {
        return tagsMapper.selectTagsByCId(id);
    }
}
